<?php

/*
* author : Panos Diamantopoulos
*/

function BL_getIdfromUsername($name)
{
    $users = DB_getUsers();
    for ($i = 0; $i < count($users); $i++)
    {
        if (strcmp($users[$i]['username'], $name) == 0)
            return $users[$i]['id'];
    }
    return BL_USERNAME_TO_ID;
}

?>